package com.core.gig.web.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.core.gig.dto.MateriaPrimaDTO;
import com.core.gig.dto.MaterialAuxiliarDTO;


/**
 * @author Lucas Ceni
 *
 */
public class MaterialAuxiliarAction
		extends MateriaPrimaAction
{

	@Override
	protected MateriaPrimaDTO getDTO()
	{
		return new MaterialAuxiliarDTO();
	}
	
	public ActionForward popup(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
	{
		request.setAttribute("materiasPrimas", null);
		return mapping.findForward(FWD_POPUP);
	}
}